package com.airlines.base.config.websocket;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

/**
 * @author xxxx
 * @date 2017年12月1日
 * @description
 */
@ConditionalOnWebApplication
@Configuration
@ConditionalOnProperty(name="com.airlines.websocket.open",havingValue="true")
public class BaseWebSocketConfig {
	
	@Bean
	public ServerEndpointExporter serverEndpointExporter() {
		return new ServerEndpointExporter();
	}
}
